package br.ufu.lsi.social.storage.model;

import org.springframework.data.neo4j.annotation.EndNode;
import org.springframework.data.neo4j.annotation.GraphId;
import org.springframework.data.neo4j.annotation.RelationshipEntity;
import org.springframework.data.neo4j.annotation.StartNode;

@RelationshipEntity( type = "FOLLOW" )
public class Follow {
    
    @GraphId
    private Long relationId;
    
    @StartNode
    private User follower;
    
    @EndNode
    private User followee;
    
    private Long createdAt;
    
    

    public User getFollower() {
        return follower; 
    }

    public void setFollower( User follower ) {
        this.follower = follower;
    }

    public User getFollowee() {
        return followee;
    }

    public void setFollowee( User followee ) {
        this.followee = followee;
    }

    public Long getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt( Long createdAt ) {
        this.createdAt = createdAt;
    }

}
